using System.Web.UI.HtmlControls;
using System.IO;
using System.Web.UI;

namespace Library.WebControls.SimpleCallback {
	public class SpCallbackDesign : System.Web.UI.Design.ControlDesigner {
		public override string GetDesignTimeHtml() {
			//var cb = (SpCallback)Component;
			var span = new HtmlGenericControl("span");
			span.Style.Add(HtmlTextWriterStyle.BorderColor, "Black");
			span.Style.Add(HtmlTextWriterStyle.BorderStyle, "solid");
			span.Style.Add(HtmlTextWriterStyle.BorderWidth, "2px");
			span.Style.Add(HtmlTextWriterStyle.BackgroundColor, "Gray");
			span.InnerText = "SpCallback";
			var sw = new StringWriter();
			var tw = new HtmlTextWriter(sw);
			span.RenderControl(tw);
			return sw.ToString();
		}
	}
}
